#ifndef SERIALPORTDIALOG_H
#define SERIALPORTDIALOG_H

#include <QDialog>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
namespace Ui {
class SerialPortDialog;
}

class SerialPortDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SerialPortDialog(QWidget *parent = nullptr);
    ~SerialPortDialog();

private:
    Ui::SerialPortDialog *ui;
    QSerialPort *serial;

    void closeEvent(QCloseEvent *);

private slots:
    void SaveComConfig();
};

#endif // SERIALPORTDIALOG_H
